package com.lbl.springboot_study.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by 李柏霖
 * 2020/11/19 19:35
 */

@Controller
public class Demo01Controller {

    @RequestMapping(path="/demo01",method = {RequestMethod.GET,RequestMethod.POST})
    public @ResponseBody
    String demo01(){
        return "HelloWorld!!!";
    }
}